<?php

namespace App\Models;

use App\User;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Apply extends Model
{
    use SoftDeletes;

    protected $table = 'applies';

    public function getUser($id){
        $user = User::where('id',$id)->select('id','mobile','name')->first();
        return $user;
    }
}
